<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<div class="modal-content">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal"
			aria-hidden="true">&times;</button>
		<h6 class="modal-title" id="myModalLabel"> 编辑角色信息 </h6>
	</div>

	<div class="modal-body" style="width: 100%">
		<form class="form-horizontal" role="form" id="roleForm">
			<input type="hidden" name="refid" th:value="${role.refid}" />
			<input type="hidden" name="createUserRefid" th:value="${role.createUserRefid}" />
			<input type="hidden" name="modifyUserRefid" th:value="${role.modifyUserRefid}" />
			<input type="hidden" name="version" th:value="${role.version}" />
			<input type="hidden" name="Active" th:value="${role.active}" />
			<input type="hidden" name="Deleted" th:value="${role.deleted}" />
			<input type="hidden" name="platformRefid" th:value="${role.platformRefid}" />
			<div class="form-group">
				<label class="col-md-3 control-label">系统平台</label>
				<div class="col-md-8">
					<select class="form-control" th:each="platform : ${platformList}">
						<option th:selected="${platform.refid} == ${role.platformRefid} ? true : false" th:value="${platform.refid}" th:text="${platform.platformName}">
						</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label for="interfaceName" class="col-md-3 control-label"><span
					style="color: red">*</span>角色编码</label>
				<div class="col-md-8">
					<input type="text" name="roleCode" id="roleCode"
						class="form-control validate[required]"
						th:value="${role.roleCode}" placeholder="角色编码" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label"><span
					style="color: red">*</span>角色名称</label>
				<div class="col-md-8">
					<input type="text" name="roleName" id="roleName"
						class="form-control validate[required]"
						th:value="${role.roleName}" placeholder="角色名称" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label"><span
					style="color: red">*</span>角色描述</label>
				<div class="col-md-8">
					<textarea class="form-control validate[required,maxSize[128]]"
						rows="3" name="roleDesc" id="roleDesc" placeholder="角色描述" th:text="${role.roleDesc}"></textarea>
				</div>
			</div>
		</form>
	</div>

	<div class="modal-footer">
		<button type="button" class="btn btn-primary" onclick="saveRoleInfo()">保存</button>
		<button type="button" class="btn btn-warning" data-dismiss="modal">关闭</button>
	</div>
</div>
</html>
